package com.example.ssu_eduapp.page;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.ssu_eduapp.R;
import com.example.ssu_eduapp.R.id;
import com.example.ssu_eduapp.R.layout;
import com.example.ssu_eduapp.tools.LogUtils;

public class MainActivity extends Activity {

//	private Button bt_uni_talk_preview;
//	private Button bt_uni_talk_login;
	
	LogUtils log = new LogUtils();
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		initDisplay();
		
	}
	
	@Override
	protected void onResume() {
		super.onResume();
	}
	
	@Override
	protected void onPause() {
		super.onPause();
	}
	@Override
	protected void onStop() {
		super.onStop();
	}
	
	
	@Override
	protected void onDestroy() {
		super.onDestroy();
	}
	
	private void initDisplay(){
		
//		bt_uni_talk_preview = (Button) findViewById(R.id.bt_uni_talk_preview);
//		bt_uni_talk_login 	= (Button) findViewById(R.id.bt_uni_talk_login);
		
	}
	
	
	public void clickButton(View v) {
	
		if(v.getId()==R.id.bt_uni_talk_preview)
		{
			log.i("bt_uni_talk_preview CLICK");
			Intent intent = new Intent(this, UniTalkActivity.class);
			startActivity(intent);
			
		}
		else if(v.getId()==R.id.bt_uni_talk_login)
		{
			log.i("bt_uni_talk_login CLICK");
			Intent intent = new Intent(this, ImsiLoginPage.class);
			startActivity(intent);
			
		}
		else if(v.getId()==R.id.bt_uni_talk_authentication)
		{
			log.i("bt_uni_talk_authentication CLICK");
			Intent intent = new Intent(this, AuthenticationActivity.class);
			startActivity(intent);
		}
		
	}
	

}
